package cn.iocoder.yudao.module.train.controller.admin.courseclasses.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 会员课程 Response VO")
@Data
@ExcelIgnoreUnannotated
public class VipClassesRespVO {

    @Schema(description = "会员课程主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25477")
    @ExcelProperty("会员课程主键")
    private Long id;

    @Schema(description = "商品ID", example = "24028")
    @ExcelProperty("商品ID")
    private Long commodityId;

    @Schema(description = "学生人数")
    @ExcelProperty("学生人数")
    private Long studentQuantity;

    @Schema(description = "课程名称")
    @ExcelProperty("课程名称")
    private String courseName;

    @Schema(description = "商品名称")
    @ExcelProperty("商品名称")
    private String commodityName;

    @Schema(description = "老师姓名")
    @ExcelProperty("老师姓名")
    private String teacherName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "开课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime beginTime;

    @Schema(description = "结课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;
}
